import type { RouteRecordRaw } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import AboutView from '@/views/AboutView.vue'
import UserLayout from '@/layout/UserLayout.vue'

export const routes: Array<RouteRecordRaw> = [
  {
    name: '主页',
    path: '/',
    component: HomeView,
    meta: {
      icon: 'House',
    },
  },
  {
    name: '关于',
    path: '/about',
    component: AboutView,
    meta: {
      icon: 'House',
    },
  },
  {
    name: '用户',
    path: '/user',
    component: UserLayout,
    meta: {
      hiddenInMenu: true,
    },
  },
]
